package com.attendance.www.hr.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.attendance.www.hr.entitys.Menu;
import com.attendance.www.hr.entitys.MenuExt;

public interface MenuExtMapper {
	
	/**
	 * 根据权限组查询菜单
	 * @param id
	 * @return
	 */
	List<MenuExt> selectByPrivilegeGroupId(@Param("id")Integer id, @Param("isSalaryAuth")Boolean isSalaryAuth);
	
	/**
	 * 递归查询菜单
	 * @param id
	 * @return
	 */
	List<MenuExt> selectRecursiveById(Integer id);
	
	Menu selectByMenuCode(String code);
	
	int insertSelective(Menu menu);
}
